package a.e.b.c;

import a.e.b.i;
import a.e.b.j;

import java.util.*;

public abstract class c
  implements s, t
{
  private Object a;
  private boolean b;
  private ab d = ab.c;
  private final Collection e = new ArrayList();
  private final Collection f = new ArrayList();
  private boolean h = true;
  private i i;
  private Set j;
  public static int k;
  
  public i d()
  {
    return this.i;
  }
  
  public void a(i parami)
  {
    this.i = parami;
    b(parami);
  }
  
  protected c() {}
  
  protected c(String paramString, i parami, j paramj)
  {
    a(paramj);
    a(paramString);
    b(parami);
    this.i = parami;
    if (!a.b)
    {
      if (parami == i.g) {
        this.j = new HashSet();
      }
    }
    else {
      this.j.add(i.g);
    }
  }
  
  public void a(db paramdb)
    throws a
  {
    if (this.i != null) {
      paramdb.a(this, this.i);
    }
  }
  
  public void a(String paramString)
  {
    boolean bool = a.b;
    if (((bool) || (paramString != null)) && ((bool) || (paramString.length() > 0))) {
      this.e.add(new q("attr.name", null, paramString));
    }
  }
  
  public void b(String paramString)
  {
    boolean bool = a.b;
    if (((bool) || (paramString != null)) && ((bool) || (paramString.length() > 0))) {
      this.e.add(new q("attr.uri", "http://www.yworks.com/xml/yfiles-common/2.0", paramString));
    }
  }
  
  public void a(j paramj)
  {
    if (paramj != j.h) {
      this.e.add(new q("attr.type", null, paramj.toString().toLowerCase(Locale.US)));
    }
  }
  
  public void b(i parami)
  {
    if (parami != i.g) {
      this.e.add(new q("for", null, parami.toString().toLowerCase(Locale.US)));
    }
  }
  
  public Object e()
  {
    return this.a;
  }
  
  public void a(Object paramObject)
  {
    this.b = true;
    this.a = paramObject;
  }
  
  public boolean f()
  {
    return this.b;
  }
  
  protected void a(boolean paramBoolean)
  {
    this.b = paramBoolean;
  }
  
  public ab a()
  {
    return this.d;
  }
  
  public void a(ab paramab)
  {
    this.d = paramab;
  }
  
  public Collection b()
  {
    return this.e;
  }
  
  public Collection c()
  {
    return this.f;
  }
  
  public boolean a(o paramo)
    throws a
  {
    boolean bool = a.b;
    if (!bool)
    {
      if (!d(paramo)) {
        return true;
      }
      if (bool) {}
    }
    else if (!f())
    {
      return false;
    }
    Object localObject1 = paramo.b();
    Object localObject2 = e();
    Object localObject3 = b(paramo, localObject1);
    if (!bool) {
      if (localObject3 == null) {
        return localObject2 == null;
      }
    }
    return localObject3.equals(localObject2);
  }
  
  protected boolean d(o paramo)
  {
    boolean bool = a.b;
    if ((bool) || (this.j != null))
    {
      if (bool) {
        break label44;
      }
      if (!this.j.contains(i.b)) {}
    }
    else
    {
      return true;
    }
    label44:
    i locali = (i)paramo.a("y.io.graphml.output.SerializationProperties.CURRENT_KEY_SCOPE");
    return this.j.contains(locali);
  }
  
  public Set g()
  {
    if (!a.b) {
      if (this.j == null)
      {
        this.j = new HashSet();
        this.j.add(i.b);
      }
    }
    return this.j;
  }
  
  public void a(Set paramSet)
  {
    if (paramSet == null) {
      throw new IllegalArgumentException("value must not be null");
    }
    this.j = paramSet;
  }
  
  public void b(o paramo)
    throws a
  {
    Object localObject1 = paramo.b();
    Object localObject2 = b(paramo, localObject1);
    a(paramo, localObject2);
  }
  
  public void c(o paramo)
    throws a
  {
    boolean bool = a.b;
    if (!bool)
    {
      if (!f()) {
        return;
      }
      if (bool) {}
    }
    else
    {
      if (!h()) {
        return;
      }
      paramo.d().a("default", "http://graphml.graphdrawing.org/xmlns");
    }
    a(paramo, e());
    paramo.d().b();
  }
  
  public void b(boolean paramBoolean)
  {
    this.h = paramBoolean;
  }
  
  public boolean h()
  {
    return this.h;
  }
  
  protected abstract void a(o paramo, Object paramObject)
    throws a;
  
  protected abstract Object b(o paramo, Object paramObject)
    throws a;
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.c.c

 * JD-Core Version:    0.7.0.1

 */